using System;

namespace EPiServer.Labs.MobilePack.Site
{
    public partial class MobileSite : MobileBase
    {
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            if (!this.IsPostBack) this.Title = (CurrentPage["Header"] ?? CurrentPage.PageName).ToString();
            FooterTextProp.PageLink = GetSiteData().PageLink;
            FooterNavigationProp.PageLink = GetSiteData().PageLink;
        }
    }
}